package com.hzya.frame.utils.core.tree;

import java.util.Comparator;

public class TreeNodeComparator
  implements Comparator<TreeNode>
{
  public int compare(TreeNode node1, TreeNode node2)
  {
    if ((node1.getId() != null) && (node2.getId() != null))
      return node1.getId().compareTo(node2.getId());

    return 0;
  }
}